package tool

import (
	"MoSkeleton/framework/core/models"
)

type GenTemplateClassify struct {
	models.MoModel
	Title               string `gorm:"column:title;type:VARCHAR(100);NOT NULL"`
	ClassifyCode        string `gorm:"column:classify_code;type:VARCHAR(100);NOT NULL"`
	IsIgnoreTablePrefix string `gorm:"column:is_ignore_table_prefix;type:CHAR(1);"`
	IsDetectTemplate    string `gorm:"column:is_detect_template;type:CHAR(1);NOT NULL"`
	ListOrder           int32  `gorm:"column:list_order;type:INT;NOT NULL"`
	IsDefault           string `gorm:"column:is_default;type:CHAR(1);NOT NULL"`
	Status              string `gorm:"column:status;type:CHAR(1);NOT NULL"`
	Remark              string `gorm:"column:remark;type:VARCHAR(500);"`
	CreatedBy           string `gorm:"column:created_by;type:VARCHAR(32);"`
	UpdatedBy           string `gorm:"column:updated_by;type:VARCHAR(32);"`
}

func (b *GenTemplateClassify) TableName() string {
	return "gen_template_classify"
}
